package com.cinc.ebc.mm.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 库存量
 * @Author: jeecg-boot
 * @Date:   2022-04-10
 * @Version: V1.0
 */
@Data
@TableName("mm_material_stock")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mm_material_stock对象", description="库存量")
public class MmMaterialStock implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private java.lang.String id;
	/**物料*/
	@Excel(name = "物料", width = 15)
    @ApiModelProperty(value = "物料")
    private java.lang.String materialId;
	/**物料编号*/
	@Excel(name = "物料编号", width = 15)
    @ApiModelProperty(value = "物料编号")
    private java.lang.String materialNo;
	/**物料描述*/
	@Excel(name = "物料描述", width = 15)
    @ApiModelProperty(value = "物料描述")
    private java.lang.String materialDesc;
	/**单位*/
    @Excel(name = "单位", width = 15, dictTable = "mdm_unit", dicText = "unit_name", dicCode = "unit_code")
    @Dict(dictTable = "mdm_unit", dicText = "unit_name", dicCode = "unit_code")
    @ApiModelProperty(value = "单位")
    private java.lang.String unit;
	/**库存量*/
	@Excel(name = "库存量", width = 15)
    @ApiModelProperty(value = "库存量")
    private java.math.BigDecimal stockQty;
	/**单价*/
	@Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private java.math.BigDecimal unitPrice;
	/**金额*/
	@Excel(name = "金额", width = 15)
    @ApiModelProperty(value = "金额")
    private java.math.BigDecimal sumPrice;
	/**批次*/
	@Excel(name = "批次", width = 15)
    @ApiModelProperty(value = "批次")
    private java.lang.String batchNo;
	/**库房*/
	@Excel(name = "库房", width = 15, dictTable = "mdm_warehouse", dicText = "warehouse_name", dicCode = "id")
	@Dict(dictTable = "mdm_warehouse", dicText = "warehouse_name", dicCode = "id")
    @ApiModelProperty(value = "库房")
    private java.lang.String warehouseId;
	/**库位*/
	@Excel(name = "库位", width = 15, dictTable = "mdm_storage_location", dicText = "location_no", dicCode = "id")
	@Dict(dictTable = "mdm_storage_location", dicText = "location_no", dicCode = "id")
    @ApiModelProperty(value = "库位")
    private java.lang.String storageLocationId;
	/**状态*/
	@Excel(name = "状态", width = 15, dicCode = "mm_stock_status")
	@Dict(dicCode = "mm_stock_status")
    @ApiModelProperty(value = "状态")
    private java.lang.String status;
	/**备注*/
	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private java.lang.String remark;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private java.lang.String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date createTime;
	/**修改人*/
    @ApiModelProperty(value = "修改人")
    private java.lang.String updateBy;
	/**修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private java.util.Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private java.lang.String sysOrgCode;
	/**租户ID*/
	@Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private java.lang.Integer tenantId;
	/**工厂*/
	@Excel(name = "工厂", width = 15)
    @ApiModelProperty(value = "工厂")
    private java.lang.String factoryId;
	/**已分配*/
	@Excel(name = "已分配", width = 15)
    @ApiModelProperty(value = "已分配")
    private java.math.BigDecimal stockQtyAllocate;
	/**可用*/
	@Excel(name = "可用", width = 15)
    @ApiModelProperty(value = "可用")
    private java.math.BigDecimal stockQtyAvailable;
    /**版本号*/
    @Excel(name = "版本号", width = 15)
    @ApiModelProperty(value = "版本号")
    private java.lang.Integer version;
    /**项目*/
    @Excel(name = "项目", width = 15, dictTable = "quote_project", dicText = "project_name", dicCode = "id")
    @Dict(dictTable = "quote_project", dicText = "project_name", dicCode = "id")
    @ApiModelProperty(value = "项目")
    private String projectId;
}
